<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Document</title>

    <style>
        .container {
            width: 500px;
            margin: 0 auto;
            margin-top: 200px;
        }

        .title {
            line-height: 50px;
            height: 50px;
            font-size: 30px;
        }

        .first {
            line-height: 100px;
            height: 100px;
            font-size: 50px;
        }

        .second {
            line-height: 60px;
            height: 60px;
            font-size: 30px;
        }

        .third {
            line-height: 40px;
            height: 40px;
            font-size: 20px;
        }

        .first span {
            color: red;
        }

        
    </style>
</head>
<body>

    <div class="container">
        <div class="title">抽奖环节</div>
        <div class="first">一等奖：<span>刘德华</span></div>
        <div class="second">二等奖：<span>周星驰</span></div>
        <div class="third">三等奖：<span>周杰伦</span></div>
    </div>
    
<script>
    const personArr = ["刘嘉伟", "方思颖", "李璇", "刘德华"]

    function randomOnePerson() {
        let idx = Math.floor(Math.random() * (personArr.length))
        let p = personArr[idx]
        personArr.splice(idx, 1)
        return p
    }

    document.querySelector(".first span").innerHTML = (randomOnePerson())
    document.querySelector(".second span").innerHTML = (randomOnePerson())
    document.querySelector(".third span").innerHTML = (randomOnePerson())

</script>
</body>
</html>